package protocal;

public class Constants {
	
	public static final int VERSION = 1;
	
	public static final int PLATFORM_IOS = 1;//ios
	public static final int PLATFORM_ANDROID = 2;//android
	public static final int PLATFORM_WEB = 3;//web

	/**
	 * 认证TOKEN
	 */
	public static final int MSG_AUTH_TOKEN = 2;
	
	/**
	 * 服务器认证完返回
	 */
	public static final int MSG_AUTH_STATUS = 3;
	
	/**
	 * 普通聊天消息
	 */
	public static final int MSG_IM = 4;
	
	/**
	 * 普通聊天消息确认，返回给客户端
	 */
	public static final int MSG_ACK = 5;
	
	/**
	 * 群通知
	 */
	public static final int MSG_GROUP_NOTIFICATION = 6;
	
	/**
	 * 普通群消息
	 */
	public static final int MSG_GROUP_IM = 7;
	
	/**
	 * 客户端发送给服务器告诉服务器消息已经到达
	 */
	public static final int MSG_PEER_ACK = 8;
	
	/**
	 * 正在输入状态
	 */
	public static final int MessageInputing = 9;
	
	/**
	 * 在线状态
	 */
	public static final int MSG_ONLINE_STATE = 10;
	
	/**
	 * 客户端发出的心跳PING
	 */
	public static final int MSG_PING = 11;
	
	/**
	 * 服务器响应客户端PONG
	 */
	public static final int MSG_PONG = 12;
	
	/**
	 * 设备互踢
	 */
	public static final int MSG_DEVICE_KICK = 14;
}
